package by.myteam.gonki.util;

import by.myteam.gonki.bo.car.RedCar;
import by.myteam.gonki.bo.car.SelectCar;
import by.myteam.gonki.bo.car.SilverCar;
import by.myteam.gonki.gui.MainFrame;
import by.myteam.gonki.logic.GameLogic;

public class ResetStateGame {
	public final static ResetStateGame INSTANCE = new ResetStateGame();
	
	private ResetStateGame(){}
	
	public void reset(){
		SelectCar.INSTANCE.getCar().reset();
		GameLogic.INSTANCE.reset();
		MainFrame.INSTANCE.getTravelTime().restart();
		MainFrame.INSTANCE.getTimer().restart();
		SelectCar.INSTANCE.reset();
		RedCar.INSTANCE.reset();
		SilverCar.INSTANCE.reset();
	}
}
